package com.fin.zw.aiqas.model.request;

import com.fin.zw.aiqas.enums.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class TaskInfoRequest {
    //任务ID
    @ApiModelProperty(notes = "任务ID")
    private Long id;
    @ApiModelProperty(notes = "任务名称")
    private String name;
    @ApiModelProperty(notes = "任务状态")
    private TaskStatus runStatus;
    @ApiModelProperty(notes = "任务开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @ApiModelProperty(notes = "搜索栏开始时间的结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTimeE;
    @ApiModelProperty(notes = "任务结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @ApiModelProperty(notes = "搜索栏完成时间的开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTimeS;
    @ApiModelProperty(notes = "创建人id")
    private String creator;
    @ApiModelProperty(notes = "创建人姓名")
    private String operatorRealName;
    @ApiModelProperty(notes = "创建时间")
    private Date createTime;
    @ApiModelProperty(notes = "搜索栏创建时间的结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTimeEnd;

    @ApiModelProperty(notes = "任务类型-手动/自动")
    private TaskType taskType;
        // 自动 - 自动质检时间 - 每周/每天
    @ApiModelProperty(notes = "自动质检时间类型 -每周/每天")
    private TaskTimeType checkTimeType;
    @ApiModelProperty(notes = "检测时间")
    private String taskCron;

    @ApiModelProperty(notes = "通话时长类型")
    private LogicalCalculus durationLogic;
    @ApiModelProperty(notes = "通话时长开始数字")
    private BigDecimal num;
    @ApiModelProperty(notes = "通话时长结束数字")
    private BigDecimal endNum;

    @ApiModelProperty(notes = "呼叫方向")
    private Direction direction;
    @ApiModelProperty(notes = "抽检比例")
    private BigDecimal checkProp;

    @ApiModelProperty(notes = "场景ID")
    private Long scenesInfoId;

    @ApiModelProperty(notes = "任务文件路径")
    private String taskFilePath;

    @ApiModelProperty(notes = "定时任务状态  停用/启用  ")
    private Status status;

    @ApiModelProperty(notes = "并发数")
    private int threadNum;
}
